package com.dongqi.deviceData.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * 设备数据-测量
 *
 * @TableName device_measure
 */
@TableName("device_measure")
public class DeviceMeasureEntity implements Serializable {
    /**
     * id
     */
    private Long id;

    /**
     * 设备编号
     */
    private String deviceNo;

    /**
     * 测量设备编号
     */
    private String measureNo;

    /**
     * 测量设备型号
     */
    private String measureModel;

    /**
     * 设备状态
     */
    private String status;

    /**
     * 雷达状态
     */
    private String radarStatus;

    /**
     * 雷达频率
     */
    private String radarFrequency;

    /**
     * 雷达功率
     */
    private String radarPower;

    /**
     * 定位精度
     */
    private String positionAccuracy;

    /**
     * 定位方式
     */
    private String positionType;

    /**
     * 信号强度
     */
    private String signalStrength;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 备用1
     */
    private String bak1;

    /**
     * 备用2
     */
    private String bak2;

    /**
     * 备用3
     */
    private String bak3;

    /**
     * 经度
     */
    private String longitude;

    /**
     * 纬度
     */
    private String latitude;

    /**
     * 时间戳
     */
    private String timestp;

    public String getTimestp() {
        return timestp;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    public Long getId() {
        return id;
    }

    /**
     * id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 设备编号
     */
    public String getDeviceNo() {
        return deviceNo;
    }

    /**
     * 设备编号
     */
    public void setDeviceNo(String deviceNo) {
        this.deviceNo = deviceNo;
    }

    /**
     * 测量设备编号
     */
    public String getMeasureNo() {
        return measureNo;
    }

    /**
     * 测量设备编号
     */
    public void setMeasureNo(String measureNo) {
        this.measureNo = measureNo;
    }

    /**
     * 测量设备型号
     */
    public String getMeasureModel() {
        return measureModel;
    }

    /**
     * 测量设备型号
     */
    public void setMeasureModel(String measureModel) {
        this.measureModel = measureModel;
    }

    /**
     * 设备状态
     */
    public String getStatus() {
        return status;
    }

    /**
     * 设备状态
     */
    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * 雷达状态
     */
    public String getRadarStatus() {
        return radarStatus;
    }

    /**
     * 雷达状态
     */
    public void setRadarStatus(String radarStatus) {
        this.radarStatus = radarStatus;
    }

    /**
     * 雷达频率
     */
    public String getRadarFrequency() {
        return radarFrequency;
    }

    /**
     * 雷达频率
     */
    public void setRadarFrequency(String radarFrequency) {
        this.radarFrequency = radarFrequency;
    }

    /**
     * 雷达功率
     */
    public String getRadarPower() {
        return radarPower;
    }

    /**
     * 雷达功率
     */
    public void setRadarPower(String radarPower) {
        this.radarPower = radarPower;
    }

    /**
     * 定位精度
     */
    public String getPositionAccuracy() {
        return positionAccuracy;
    }

    /**
     * 定位精度
     */
    public void setPositionAccuracy(String positionAccuracy) {
        this.positionAccuracy = positionAccuracy;
    }

    /**
     * 定位方式
     */
    public String getPositionType() {
        return positionType;
    }

    /**
     * 定位方式
     */
    public void setPositionType(String positionType) {
        this.positionType = positionType;
    }

    /**
     * 信号强度
     */
    public String getSignalStrength() {
        return signalStrength;
    }

    /**
     * 信号强度
     */
    public void setSignalStrength(String signalStrength) {
        this.signalStrength = signalStrength;
    }

    /**
     * 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 修改时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 修改时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 备用1
     */
    public String getBak1() {
        return bak1;
    }

    /**
     * 备用1
     */
    public void setBak1(String bak1) {
        this.bak1 = bak1;
    }

    /**
     * 备用2
     */
    public String getBak2() {
        return bak2;
    }

    /**
     * 备用2
     */
    public void setBak2(String bak2) {
        this.bak2 = bak2;
    }

    /**
     * 备用3
     */
    public String getBak3() {
        return bak3;
    }

    /**
     * 备用3
     */
    public void setBak3(String bak3) {
        this.bak3 = bak3;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DeviceMeasureEntity other = (DeviceMeasureEntity) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
                && (this.getDeviceNo() == null ? other.getDeviceNo() == null : this.getDeviceNo().equals(other.getDeviceNo()))
                && (this.getMeasureNo() == null ? other.getMeasureNo() == null : this.getMeasureNo().equals(other.getMeasureNo()))
                && (this.getMeasureModel() == null ? other.getMeasureModel() == null : this.getMeasureModel().equals(other.getMeasureModel()))
                && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
                && (this.getRadarStatus() == null ? other.getRadarStatus() == null : this.getRadarStatus().equals(other.getRadarStatus()))
                && (this.getRadarFrequency() == null ? other.getRadarFrequency() == null : this.getRadarFrequency().equals(other.getRadarFrequency()))
                && (this.getRadarPower() == null ? other.getRadarPower() == null : this.getRadarPower().equals(other.getRadarPower()))
                && (this.getPositionAccuracy() == null ? other.getPositionAccuracy() == null : this.getPositionAccuracy().equals(other.getPositionAccuracy()))
                && (this.getPositionType() == null ? other.getPositionType() == null : this.getPositionType().equals(other.getPositionType()))
                && (this.getSignalStrength() == null ? other.getSignalStrength() == null : this.getSignalStrength().equals(other.getSignalStrength()))
                && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
                && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
                && (this.getBak1() == null ? other.getBak1() == null : this.getBak1().equals(other.getBak1()))
                && (this.getBak2() == null ? other.getBak2() == null : this.getBak2().equals(other.getBak2()))
                && (this.getBak3() == null ? other.getBak3() == null : this.getBak3().equals(other.getBak3()))
                && (this.getLongitude() == null ? other.getLongitude() == null : this.getLongitude().equals(other.getLongitude()))
                && (this.getLatitude() == null ? other.getLatitude() == null : this.getLatitude().equals(other.getLatitude()))
                && (this.getTimestp() == null ? other.getTimestp() == null : this.getTimestp().equals(other.getTimestp()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDeviceNo() == null) ? 0 : getDeviceNo().hashCode());
        result = prime * result + ((getMeasureNo() == null) ? 0 : getMeasureNo().hashCode());
        result = prime * result + ((getMeasureModel() == null) ? 0 : getMeasureModel().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getRadarStatus() == null) ? 0 : getRadarStatus().hashCode());
        result = prime * result + ((getRadarFrequency() == null) ? 0 : getRadarFrequency().hashCode());
        result = prime * result + ((getRadarPower() == null) ? 0 : getRadarPower().hashCode());
        result = prime * result + ((getPositionAccuracy() == null) ? 0 : getPositionAccuracy().hashCode());
        result = prime * result + ((getPositionType() == null) ? 0 : getPositionType().hashCode());
        result = prime * result + ((getSignalStrength() == null) ? 0 : getSignalStrength().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getBak1() == null) ? 0 : getBak1().hashCode());
        result = prime * result + ((getBak2() == null) ? 0 : getBak2().hashCode());
        result = prime * result + ((getBak3() == null) ? 0 : getBak3().hashCode());
        result = prime * result + ((getLongitude() == null) ? 0 : getLongitude().hashCode());
        result = prime * result + ((getLatitude() == null) ? 0 : getLatitude().hashCode());
        result = prime * result + ((getTimestp() == null) ? 0 : getTimestp().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", deviceNo=").append(deviceNo);
        sb.append(", measureNo=").append(measureNo);
        sb.append(", measureModel=").append(measureModel);
        sb.append(", status=").append(status);
        sb.append(", radarStatus=").append(radarStatus);
        sb.append(", radarFrequency=").append(radarFrequency);
        sb.append(", radarPower=").append(radarPower);
        sb.append(", positionAccuracy=").append(positionAccuracy);
        sb.append(", positionType=").append(positionType);
        sb.append(", signalStrength=").append(signalStrength);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", bak1=").append(bak1);
        sb.append(", bak2=").append(bak2);
        sb.append(", bak3=").append(bak3);
        sb.append(", longitude=").append(longitude);
        sb.append(", latitude=").append(latitude);
        sb.append(", timestp=").append(timestp);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    public void setTimestp(String timestp) {
        this.timestp = timestp;
    }
}